﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using config.view;
using config.viewmodel;
namespace config.Helper
{
    static class ViewHelper
    {
        static public UserControl[] Pages { get; } = {
            new Home(),
            new BasicSet(),
            new AdvancedSet(),
            new FrequencySet(),
            new SimpleMappingCurveEditor(),
            
        };
        public static UserControl LoadPage(string? PageName)
        {

            return PageName switch
            {
                "Home" => Pages[0],
                "BasicSet" => Pages[1],
                "AdvancedSet" => Pages[2],
                "FrequencySet" => Pages[3],
                "InputMappingSet" => Pages[4],
                _ => new Home(),
            }; 
        }

    }
}
